import request from '@/utils/request';
import type { AxiosResponse } from 'axios';
const baseModule: string = '/config';

/**
 * 查询参数
 * @param param 参数
 * @returns {Promise<AxiosResponse<T>>}
 */
export const getConfig = (param: object): Promise<AxiosResponse<API.IResult>> => {
  return request({
    url: `${baseModule}/getType`,
    method: 'post',
    data: param,
  });
};
